package hz.mobileproject.pda.entity.response;


import android.os.Parcel;
import android.os.Parcelable;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/7/11 0011.
 */
@Entity
public class Response_loadPoliceInfo implements Parcelable{


    /**
     * cus_number : 3223
     * police_code : 3304129
     * police_name : 郑科浩之
     * department_id : 66
     * department_name : 一监区三分监区
     */
    @Id
    private Long id;
    @Property(nameInDb = "cus_number")
    private int cus_number;
    @Property(nameInDb = "police_code")
    private String police_code;

    @Property(nameInDb = "police_id")
    private String police_id;

    @Property(nameInDb = "police_name")
    private String police_name;
    @Property(nameInDb = "department_id")
    private int department_id;
    @Property(nameInDb = "department_name")

    private String department_name;

    private String recognition_model;

    public String getSimilarity_degree() {
        return similarity_degree;
    }

    public void setSimilarity_degree(String similarity_degree) {
        this.similarity_degree = similarity_degree;
    }

    public String getRecognition_model() {
        return recognition_model;
    }

    public void setRecognition_model(String recognition_model) {
        this.recognition_model = recognition_model;
    }

    private String similarity_degree;

    @Generated(hash = 1179051121)
    public Response_loadPoliceInfo(Long id, int cus_number, String police_code,
            String police_id, String police_name, int department_id,
            String department_name, String recognition_model,
            String similarity_degree) {
        this.id = id;
        this.cus_number = cus_number;
        this.police_code = police_code;
        this.police_id = police_id;
        this.police_name = police_name;
        this.department_id = department_id;
        this.department_name = department_name;
        this.recognition_model = recognition_model;
        this.similarity_degree = similarity_degree;
    }

    @Generated(hash = 1378590757)
    public Response_loadPoliceInfo() {
    }

    public int getCus_number() {
        return cus_number;
    }

    public void setCus_number(int cus_number) {
        this.cus_number = cus_number;
    }

    public String getPolice_code() {
        return police_code;
    }

    public void setPolice_code(String police_code) {
        this.police_code = police_code;
    }

    public String getPolice_name() {
        return police_name;
    }

    public void setPolice_name(String police_name) {
        this.police_name = police_name;
    }

    public int getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(int department_id) {
        this.department_id = department_id;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPolice_id() {
        return this.police_id;
    }

    public void setPolice_id(String police_id) {
        this.police_id = police_id;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeInt(this.cus_number);
        dest.writeString(this.police_code);
        dest.writeString(this.police_id);
        dest.writeString(this.police_name);
        dest.writeInt(this.department_id);
        dest.writeString(this.department_name);
        dest.writeString(this.recognition_model);
        dest.writeString(this.similarity_degree);
    }

    protected Response_loadPoliceInfo(Parcel in) {
        this.id = (Long) in.readValue(Long.class.getClassLoader());
        this.cus_number = in.readInt();
        this.police_code = in.readString();
        this.police_id = in.readString();
        this.police_name = in.readString();
        this.department_id = in.readInt();
        this.department_name = in.readString();
        this.recognition_model = in.readString();
        this.similarity_degree = in.readString();
    }

    public static final Creator<Response_loadPoliceInfo> CREATOR = new Creator<Response_loadPoliceInfo>() {
        @Override
        public Response_loadPoliceInfo createFromParcel(Parcel source) {
            return new Response_loadPoliceInfo(source);
        }

        @Override
        public Response_loadPoliceInfo[] newArray(int size) {
            return new Response_loadPoliceInfo[size];
        }
    };
}
